package com.iris.thread.produceConsume;

/**
 * 项目: thinking
 * 包名: com.iris.thread.produceConsume
 * 作者: victor
 * 日期: 2016年10月29日
 * 说明: ProduceThread
 */
public class ProduceThread implements Runnable {

	private ProduceConsume pc;
	
	public ProduceConsume getPc() {
		return pc;
	}
	public void setPc(ProduceConsume pc) {
		this.pc = pc;
	}
	public ProduceThread(ProduceConsume pc){
		this.pc = pc;
	}
	@Override
	public void run() {
		while(true){
			try {
				pc.produce();
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}

	}

}
